package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 公告阅读记录对象 t_notice_read
 * 
 * @author hxc
 * @date 2021-08-16
 */
public class TNoticeRead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 公告id */
    private Long noticeId;
    /** 阅读人员id */
    private Long userId;

    /** ----------------------------------表关联字段----------------------------- */
    /** 用户昵称 */
    @TableField(exist = false)
    private String nickName;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setNoticeId(Long noticeId) 
    {
        this.noticeId = noticeId;
    }
    public Long getNoticeId() 
    {
        return noticeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public String getNickName() { return nickName; }
    public void setNickName(String nickName) { this.nickName = nickName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("noticeId", getNoticeId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("nickName", getNickName())
            .toString();
    }
}
